package cn.qyd.javatype;

/**
 * @author 邱运铎
 * @date 2024-03-02 14:15
 */
public class IntAndCharDemo {
    public static void main(String[] args) {
        int value_int = 65;
        char value_char = (char)value_int;
        System.out.println(value_char);

        int radix = 10;
        int value_int1 = 6;
        char value_char1 = Character.forDigit(value_int1,radix);
        System.out.println(value_char1);

        int value_int2 = 1;
        char value_char2 = Integer.toString(value_int2).charAt(0);
        System.out.println(value_char2);

    }
}
